<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html">
		<h:panelGroup rendered="#{!usuario.signed}">
			<form action="j_security_check" method="post">
				<h:panelGrid columns="5">
		
				    <h:outputLabel for="j_username" styleClass="edtLogin">Usuário:</h:outputLabel>
				    <h:inputText id="j_username" required="true" styleClass="edtLogin"/>
			
				    <h:outputLabel for="j_password" styleClass="edtLogin">Senha:</h:outputLabel>
				    <h:inputSecret id="j_password" required="true" styleClass="edtLogin"/>
			
				    <h:commandButton value="Login" styleClass="btnLogin" />
		
			    </h:panelGrid>
		
			</form>
		</h:panelGroup>
		<h:panelGroup rendered="#{usuario.signed}">
			<h:form>
				<h:panelGrid columns="2">
					<h:outputText value="#{usuario.userName}" />
					<h:commandLink action="#{usuario.logout}" value="Sair" />
				</h:panelGrid>
			</h:form>
		</h:panelGroup>
</ui:composition>
